<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head th:fragment="myhead(title,links)">
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <title th:replace="${title}">Management System</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" />
    <link rel="stylesheet" th:href="@{/font-awesome/css/font-awesome.css}">
    <th:block th:replace="${links}" />
    <script th:src="@{/layui/layui.js}"></script>
    <script type="text/javascript">
        var ctx = '[[@{/}]]';
        var layuiVersion = parseInt([[${@constantData.layuiVersion}]]);
        console.log(" the ctx path = {},layuiVersion={}",ctx,layuiVersion);
    </script>
</head>

<div th:fragment="init">
    <script type="text/javascript" th:inline="javascript">
        var ctx = /*[[@{/}]]*/ '/';
        console.log(" the ctx path = ",ctx);
    </script>
</div>

<div th:fragment="footer">
    Copyright © 2017 - 2020 By BENQEND
</div>
</html>